#include <QtGui/QApplication>
#include <QtDeclarative/QDeclarativeContext>
#include "qmlapplicationviewer.h"
#include "telephony.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer.setMainQmlFile(QLatin1String("qml/Dialpad/main.qml"));

    // Create a Telephony object and add it to the root context
    // This allows QML elements to use the telephony object's signals and slots
    viewer.rootContext()->setContextProperty("telephony", new Telephony);
    viewer.showExpanded();

    return app.exec();
}
